package com.example.entity;

/**
 * 老师
 */

public class Teacher extends Account {
    private Integer id;
    private String username;
    private String password;
    private String name;
    private Integer departmentId;
    private String role;

    public Teacher(Integer id, String username, String password, String name, Integer departmentId, String role) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.name = name;
        this.departmentId = departmentId;
        this.role = role;
    }

    public Teacher() {
    }

    @Override
    public Integer getId() {
        return id;
    }

    @Override
    public void setId(Integer id) {
        this.id = id;
    }

    @Override
    public String getUsername() {
        return username;
    }

    @Override
    public void setUsername(String username) {
        this.username = username;
    }

    @Override
    public String getPassword() {
        return password;
    }

    @Override
    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getDepartmentId() {
        return departmentId;
    }

    public void setDepartmentId(Integer departmentId) {
        this.departmentId = departmentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String getRole() {
        return role;
    }

    @Override
    public void setRole(String role) {
        this.role = role;
    }
}
